home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Screenblankers / BlitzBlank 2.60 / Install_BlitzBlank < prev    next >
Text File  |  1996-09-26  |  13KB  |  476 lines

  1. ; Install-Script for BlitzBlank 2.50
  2.  
  3.  
  4. (if (= @language "deutsch")
  5.   (
  6.     (set text01 "Bitte wählen Sie ein Verzeichnis aus. Darin wird dann eine Schublade BlitzBlank angelegt.")
  7.     (set text02 "Erzeuge das Verzeichnis ")
  8.     (set text03 "Wohin soll das Modulverzeichnis kopiert werden?")
  9.     (set text04 "Kopiere das Modulverzeichnis nach ")
  10.     (set text05 "In welches Verzeichnis soll BlitzBlankPrefs kopiert werden?")
  11.     (set text06 "Kopiere BlitzBlankPrefs nach ")
  12.     (set text07 "In welches Verzeichnis soll BlitzBlank kopiert werden?")
  13.     (set text08 "Kopiere BlitzBlank nach ")
  14.     (set text09 "In welches Verzeichnis sollen die notwendigen Libraries kopiert werden?")
  15.     (set text10 "Kopiere blitzblank.library nach ")
  16.     (set text11 "Kopiere iff.library nach ")
  17.     (set text12 "In welches Verzeichnis soll die Anleitung kopiert werden (gleiches Verzeichnis, wie BBPrefs, oder \"S:\")?")
  18.     (set text14 "Kopiere BlitzBlank.guide nach ")
  19.     (set text15 "Der blitzblank.catalog wird jetzt kopiert.")
  20.     (set text16 "Kopiere blitzblank.catalog nach ")
  21.     (set text17 "Sollen die Entwickler-Files installiert werden?")
  22.     (set text18 "Ja")
  23.     (set text19 "Nein")
  24.     (set text20 "In welches Verzeichnis sollen die Entwickler-Files kopiert werden?")
  25.     (set text21 "Kopiere Schublade Developer nach ")
  26.     (set text22 "Sollen die MagicWB-Icons installiert werden?")
  27.     (set text23 "Kopiere BlitzBlank.info nach ")
  28.     (set text24 "Kopiere Modules.info nach ")
  29.     (set text25 "Kopiere BlitzBlankPrefs.info nach ")
  30.     (set text26 "Kopiere BlitzBlank.info nach ")
  31.     (set text27 "Kopiere BlitzBlank.guide.info nach ")
  32.     (set text28 "Kopiere Developer .info-Files nach ")
  33.     (set text29 "Erzeuge Konfiguration in ENV:")
  34.     (set text30 "BlitzBlankPrefs wird jetzt gestartet. Bitte nehmen Sie Ihre Einstellungen vor und klicken dann auf Speichern.")
  35.     (set text31 "BlitzBlank benötigt MUI 2.3 (V10). Dies ist scheinbar auf Ihrem System nicht installiert. Wollen Sie trotzdem fortfahren?")
  36.     (set text32 "BlitzBlank wurde nicht installiert.")
  37.     (set text33 "Kopiere Files für ")
  38.     (set text34 "Kopiere 68040+FPU Module nach ")
  39.     (set text37 "Kopiere 68020 Module nach ")
  40.     (set text38 "Kopiere 68020 blitzblank.library nach ")
  41.     (set text39 "Kopiere 68020+FPU Module nach ")
  42.     (set text40 "Kopiere 68020 BlitzBlank nach ")
  43.     (set text41 "Besorgen Sie sich unbedingt auch die Module AmigaSign256 (ASign256Blitz.lha) und ARose (ARoseBlitz1.1.lha)!")
  44.   )
  45. )
  46.  
  47. (if (= @language "english")
  48.   (
  49.     (set text01 "Please choose a directory. A directory named BlitzBlank will be created there.")
  50.     (set text02 "Creating directory ")
  51.     (set text03 "To which directory do you want the module-directory to be copied?")
  52.     (set text04 "Copying the module-directory to ")
  53.     (set text05 "To which directory do you want BlitzBlankPrefs to be copied?")
  54.     (set text06 "Copying BlitzBlankPrefs to ")
  55.     (set text07 "To which directory do you want BlitzBlank to be copied?")
  56.     (set text08 "Copying BlitzBlank to ")
  57.     (set text09 "To which directory do you want the necessary libraries to be copied?")
  58.     (set text10 "Copying blitzblank.library to ")
  59.     (set text11 "Copying iff.library to ")
  60.     (set text12 "To which directory do you want the doc to be copied (same, as BBPrefs, or \"S:\")?")
  61.     (set text14 "Copying BlitzBlank.guide to ")
  62.     (set text15 "The blitzblank.catalog will now be copied.")
  63.     (set text16 "Copying blitzblank.catalog to ")
  64.     (set text17 "Do you want to install the developer files?")
  65.     (set text18 "Yes")
  66.     (set text19 "No")
  67.     (set text20 "To which directory do you want the developer files to be copied?")
  68.     (set text21 "Copying developer directory to ")
  69.     (set text22 "Do you want to install the MagicWB-icons?")
  70.     (set text23 "Copying BlitzBlank.info to ")
  71.     (set text24 "Copying Modules.info to ")
  72.     (set text25 "Copying BlitzBlankPrefs.info to ")
  73.     (set text26 "Copying BlitzBlank.info to ")
  74.     (set text27 "Copying BlitzBlank.guide.info to ")
  75.     (set text28 "Copying developer .info-files to ")
  76.     (set text29 "Creating configuration in ENV:")
  77.     (set text30 "BlitzBlankPrefs will now be started. Please make all necessary configurations and select Save.")
  78.     (set text31 "BlitzBlank needs MUI 2.3 (V10). It seems not to be installed on your system. Do you want to continue anyway?")
  79.     (set text32 "BlitzBlank was not installed.")
  80.     (set text33 "Copying files for ")
  81.     (set text34 "Copying 68040+FPU modules to ")
  82.     (set text37 "Copying 68020 modules to ")
  83.     (set text38 "Copying 68020 blitzblank.library to ")
  84.     (set text39 "Copying 68020+FPU modules to ")
  85.     (set text40 "Copying 68020 BlitzBlank to ")
  86.     (set text41 "Be sure to get yourself also the modules AmigaSign256 (ASign256Blitz.lha) und ARose (ARoseBlitz1.1.lha)!")
  87.   )
  88. )
  89.  
  90. (if (= @language "dansk")
  91.   (
  92.     (set text01 "Please choose a directory. A directory named BlitzBlank will be created there.")
  93.     (set text02 "Creating directory ")
  94.     (set text03 "To which directory do you want the module-directory to be copied?")
  95.     (set text04 "Copying the module-directory to ")
  96.     (set text05 "To which directory do you want BlitzBlankPrefs to be copied?")
  97.     (set text06 "Copying BlitzBlankPrefs to ")
  98.     (set text07 "To which directory do you want BlitzBlank to be copied?")
  99.     (set text08 "Copying BlitzBlank to ")
  100.     (set text09 "To which directory do you want the necessary libraries to be copied?")
  101.     (set text10 "Copying blitzblank.library to ")
  102.     (set text11 "Copying iff.library to ")
  103.     (set text12 "To which directory do you want the doc to be copied (same, as BBPrefs, or \"S:\")?")
  104.     (set text14 "Copying BlitzBlank.guide to ")
  105.     (set text15 "The blitzblank.catalog will now be copied.")
  106.     (set text16 "Copying blitzblank.catalog to ")
  107.     (set text17 "Do you want to install the developer files?")
  108.     (set text18 "Yes")
  109.     (set text19 "No")
  110.     (set text20 "To which directory do you want the developer files to be copied?")
  111.     (set text21 "Copying developer directory to ")
  112.     (set text22 "Do you want to install the MagicWB-icons?")
  113.     (set text23 "Copying BlitzBlank.info to ")
  114.     (set text24 "Copying Modules.info to ")
  115.     (set text25 "Copying BlitzBlankPrefs.info to ")
  116.     (set text26 "Copying BlitzBlank.info to ")
  117.     (set text27 "Copying BlitzBlank.guide.info to ")
  118.     (set text28 "Copying developer .info-files to ")
  119.     (set text29 "Creating configuration in ENV:")
  120.     (set text30 "BlitzBlankPrefs will now be started. Please make all necessary configurations and select Save.")
  121.     (set text31 "BlitzBlank needs MUI 2.3 (V10). It seems not to be installed on your system. Do you want to continue anyway?")
  122.     (set text32 "BlitzBlank was not installed.")
  123.     (set text33 "Copying files for ")
  124.     (set text34 "Copying 68040+FPU modules to ")
  125.     (set text37 "Copying 68020 modules to ")
  126.     (set text38 "Copying 68020 blitzblank.library to ")
  127.     (set text39 "Copying 68020+FPU modules to ")
  128.     (set text40 "Copying 68020 BlitzBlank to ")
  129.     (set text41 "Be sure to get yourself also the modules AmigaSign256 (ASign256Blitz.lha) und ARose (ARoseBlitz1.1.lha)!")
  130.   )
  131. )
  132.  
  133. (set muiver (getversion "libs:muimaster.library"))
  134. (set muiver (/ muiver 65536))
  135.  
  136. (if (< muiver 10)
  137.   (if
  138.     (NOT
  139.       (askbool
  140.         (prompt text31)
  141.         (help @askchoice-help)
  142.         (choices text18 text19)
  143.         (default 1)
  144.       )
  145.     )
  146.     (abort text32)
  147.   )
  148. )
  149.  
  150. (run "SYS:Rexxc/RX \"ADDRESS 'BLITZBLANK' 'QUIT'\"")
  151.  
  152. (set @default-dest
  153.     (askdir
  154.         (prompt text01)
  155.         (help @askdir-help)
  156.         (default @default-dest)
  157.     )
  158. )
  159.  
  160. (set maindir @default-dest)
  161.  
  162. (set @default-dest
  163.   (tackon @default-dest "BlitzBlank")
  164. )
  165.  
  166. (makedir @default-dest
  167.   (prompt text02 @default-dest)
  168.     (help @makedir-help)
  169.   (infos)
  170.   (confirm)
  171. )
  172.  
  173. (set moddir
  174.     (askdir
  175.         (prompt text03)
  176.         (help @askdir-help)
  177.         (default @default-dest)
  178.     )
  179. )
  180.  
  181. (copyfiles
  182.   (prompt text04 moddir)
  183.     (help @copyfiles-help)
  184.   (source "")
  185.   (dest moddir)
  186.   (pattern "Modules")
  187.   (infos)
  188.   (confirm)
  189. )
  190.  
  191. (set bbprefsdir
  192.     (askdir
  193.         (prompt text05)
  194.         (help @askdir-help)
  195.         (default @default-dest)
  196.     )
  197. )
  198.  
  199. (copyfiles
  200.   (prompt text06 bbprefsdir)
  201.     (help @copyfiles-help)
  202.   (source "")
  203.   (dest @default-dest)
  204.   (pattern "BlitzBlankPrefs")
  205.   (infos)
  206.   (confirm)
  207. )
  208.  
  209. (set docdir
  210.     (askdir
  211.         (prompt text12)
  212.         (help @askdir-help)
  213.         (default bbprefsdir)
  214.     )
  215. )
  216.  
  217. (set doclang @language)
  218.  
  219. (if (= doclang "dansk")
  220.   (set doclang "english")
  221. )
  222.  
  223. (copyfiles
  224.   (prompt text14 docdir)
  225.     (help @copyfiles-help)
  226.   (source doclang)
  227.   (dest docdir)
  228.   (pattern "BlitzBlank.guide")
  229.   (infos)
  230.   (confirm)
  231. )
  232.  
  233. (set blitzblankdir
  234.     (askdir
  235.         (prompt text07)
  236.         (help @askdir-help)
  237.         (default "SYS:WBStartup/")
  238.     )
  239. )
  240.  
  241. (copyfiles
  242.   (prompt text08 blitzblankdir)
  243.     (help @copyfiles-help)
  244.   (source "")
  245.   (dest blitzblankdir)
  246.   (pattern "BlitzBlank")
  247.   (infos)
  248.   (confirm)
  249. )
  250.  
  251. (set libdir
  252.     (askdir
  253.         (prompt text09)
  254.         (help @askdir-help)
  255.         (default "LIBS:")
  256.     )
  257. )
  258.  
  259. (copylib
  260.     (prompt text10 libdir)
  261.     (help @copylib-help)
  262.     (source "libs/blitzblank.library")
  263.     (dest libdir)
  264.     (confirm)
  265. )
  266.  
  267. (copylib
  268.     (prompt text11 libdir)
  269.     (help @copylib-help)
  270.     (source "libs/iff.library")
  271.     (dest libdir)
  272.     (confirm)
  273. )
  274.  
  275. (if (AND (NOT (= (getassign "Locale") "")) (NOT (= @language "english")))
  276.   (
  277.     (message text15)
  278.     (set localedir
  279.       (tackon "Locale:Catalogs" @language)
  280.     )
  281.     (set localesource
  282.       (tackon "Locale/Catalogs" @language)
  283.     )
  284.     (copyfiles
  285.       (prompt text16 localedir)
  286.         (help @copyfiles-help)
  287.       (source localesource)
  288.       (dest localedir)
  289.       (pattern "blitzblank.catalog")
  290.       (confirm)
  291.     )
  292.   )
  293. )
  294.  
  295. (set cpu (database "cpu"))
  296.  
  297. (if (NOT (OR (= cpu "68000") (= cpu "68010")))   ;(OR (OR (= cpu "68020") (= cpu "68030")) (= cpu "68040"))
  298.   (
  299.  
  300.     (set fpu (run "cpu check FPU"))
  301.  
  302.     (if (= fpu 0)
  303.       (message text33 cpu "+FPU")
  304.       (message text33 cpu)
  305.     )
  306.  
  307.     (copyfiles
  308.       (prompt text37 (tackon moddir "Modules/"))
  309.         (help @copyfiles-help)
  310.       (source "68020")
  311.       (dest (tackon moddir "Modules/"))
  312.       (files)
  313.       (pattern "BB.#?")
  314.       (confirm)
  315.     )
  316.  
  317.     (copyfiles
  318.       (prompt text38 libdir)
  319.         (help @copyfiles-help)
  320.       (source "68020")
  321.       (dest libdir)
  322.       (files)
  323.       (pattern "blitzblank.library")
  324.       (confirm)
  325.     )
  326.  
  327.     (copyfiles
  328.       (prompt text40 blitzblankdir)
  329.         (help @copyfiles-help)
  330.       (source "68020")
  331.       (dest blitzblankdir)
  332.       (files)
  333.       (pattern "BlitzBlank")
  334.       (confirm)
  335.     )
  336.  
  337.     (if (AND (OR (= cpu "68020") (= cpu "68030")) (= fpu 0))
  338.       (copyfiles
  339.         (prompt text39 (tackon moddir "Modules/"))
  340.           (help @copyfiles-help)
  341.         (source "68020+FPU")
  342.         (dest (tackon moddir "Modules/"))
  343.         (files)
  344.         (pattern "BB.#?")
  345.         (confirm)
  346.       )
  347.     )
  348.  
  349.     (if (AND (OR (= cpu "68040") (= cpu "68060")) (= fpu 0))
  350.       (copyfiles
  351.         (prompt text34 (tackon moddir "Modules/"))
  352.           (help @copyfiles-help)
  353.         (source "68040+FPU")
  354.         (dest (tackon moddir "Modules/"))
  355.         (files)
  356.         (pattern "BB.#?")
  357.         (confirm)
  358.       )
  359.     )
  360.   )
  361. )
  362.  
  363. (if (askbool
  364.       (prompt text17)
  365.       (help @askchoice-help)
  366.       (choices text18 text19)
  367.       (default 0)
  368.     )
  369.   (
  370.     (set devdir
  371.         (askdir
  372.             (prompt text20)
  373.             (help @askdir-help)
  374.             (default @default-dest)
  375.         )
  376.     )
  377.     (copyfiles
  378.       (prompt text21 devdir)
  379.         (help @copyfiles-help)
  380.       (source "")
  381.       (dest devdir)
  382.       (pattern "Developer")
  383.       (infos)
  384.       (confirm)
  385.     )
  386.   )
  387.   (set devdir "")
  388. )
  389.  
  390. (if (askbool
  391.       (prompt text22)
  392.       (help @askchoice-help)
  393.       (choices text18 text19)
  394.       (default 0)
  395.     )
  396.   (
  397.     (copyfiles
  398.       (prompt text23 maindir)
  399.         (help @copyfiles-help)
  400.       (source "MagicWB/BlitzBlank.info")
  401.       (dest maindir)
  402.       (files)
  403.       (confirm)
  404.     )
  405.     (copyfiles
  406.       (prompt text24 moddir)
  407.         (help @copyfiles-help)
  408.       (source "MagicWB/BlitzBlank/Modules.info")
  409.       (dest moddir)
  410.       (files)
  411.       (confirm)
  412.     )
  413.     (copyfiles
  414.       (prompt text25 bbprefsdir)
  415.         (help @copyfiles-help)
  416.       (source "MagicWB/BlitzBlank/BlitzBlankPrefs.info")
  417.       (dest bbprefsdir)
  418.       (files)
  419.       (confirm)
  420.     )
  421.     (copyfiles
  422.       (prompt text26 blitzblankdir)
  423.         (help @copyfiles-help)
  424.       (source "MagicWB/BlitzBlank/BlitzBlank.info")
  425.       (dest blitzblankdir)
  426.       (files)
  427.       (confirm)
  428.     )
  429.     (copyfiles
  430.       (prompt text27 docdir)
  431.         (help @copyfiles-help)
  432.       (source "MagicWB/BlitzBlank/BlitzBlank.guide.info")
  433.       (dest docdir)
  434.       (files)
  435.       (confirm)
  436.     )
  437.     (if (devdir)
  438.       (copyfiles
  439.         (prompt text28 devdir)
  440.           (help @copyfiles-help)
  441.         (source "MagicWB/BlitzBlank")
  442.         (dest devdir)
  443.         (pattern "Developer")
  444.         (infos)
  445.         (confirm)
  446.       )
  447.     )
  448.   )
  449. )
  450.  
  451. (if (NOT (exists "ENV:BlitzBlank.prefs"))
  452.   (textfile
  453.     (prompt text29)
  454.     (help "")
  455.     (dest "ENV:BlitzBlank.prefs")
  456.     (append "Blackout\n0\n" (tackon moddir "Modules/") "\nalt esc\nctrl esc\n0\n0\n60\n0\n0\n0\n1\n0\n1\n1\n1\n" (tackon bbprefsdir "BlitzBlankPrefs") "\n")
  457.     (confirm)
  458.   )
  459. )
  460.  
  461. (run "c:avail flush")
  462. (run "c:avail flush")
  463.  
  464. (set @execute-dir blitzblankdir)
  465. (run "run >nil: " (cat (cat "\"" (tackon blitzblankdir "BlitzBlank")) "\"") "CX_PRIORITY=1 NASTYMOUSEBLANK=YES")
  466.  
  467. (message text30)
  468.  
  469. (set @execute-dir bbprefsdir)
  470. (run (cat (cat "\"" (tackon bbprefsdir "BlitzBlankPrefs")) "\""))
  471.  
  472. (message text41)
  473.  
  474. (exit)
  475.  
  476.